package com.hsd.znsh.service;

import com.hsd.znsh.entity.Host;
import com.hsd.znsh.entity.User;
import com.hsd.znsh.pojo.input.HostSetting;
import com.hsd.znsh.pojo.output.HostGeolocationVO;
import com.hsd.znsh.pojo.output.HostVO;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

import java.util.List;


public interface HostService extends BaseService {

    List<Host> getAllHostList(Integer userId);

    List<HostVO> getHostListByAPPUser(User user);

    List<Host> getOwnHostListByAPPUser(User user);

    List<Host> getManagerHostList(String managerName);

    Host getHostInfoByHostSn(String hostSn);

    Host updateHostSettingsInfoByHostSn(HostSetting hostSetting);

    long getHostListTotalPages(Host host,Integer userId);

    List<HostVO> getHostList(Pageable pageable,Host host, Integer userId);

    Host addHost(Host host);

    Host updateHost(Host host);

    HostVO getHostInfo(Integer id);

    void deletedHost(Integer id);

    void updateCrop(String hostSn,String name,String value);
}
